#include <REGX52.H>

void Delay1ms(unsigned int xms);		//@12.000MHz

void main()
{
	unsigned char x=0;
	while(1)
	{
		P2=~(0x01<<x%8);
		Delay1ms(1000);
		x++;
		
	}
}

void Delay1ms(unsigned int xms)		//@11.0592MHz
{
	unsigned char i, j;
	while(xms--)
	{
		//_nop_();
		i = 2;
		j = 199;
		do
		{
			while (--j);
		} while (--i);
	}
}
